import java.util.ArrayList;


public class CalculatePhysicalAddress {
	public CalculatePhysicalAddress() {
	}

	public ArrayList calculate(ArrayList<ArrayList<Integer>> testArray) {
		for(int i = 0;i<testArray.size();i++){
			int PhysicalAddress= 0;
			int Offset = testArray.get(i).get(3);
			int frameNumber = testArray.get(i).get(4);
			int frameNumberShifted = (frameNumber << 8);
			PhysicalAddress= frameNumberShifted | Offset; //unsure of
			testArray.get(i).add(PhysicalAddress);
	}
		return testArray;
	
	}
	
	
}
